package com.xcm.constant;

/**
 * 权限相关常量类
 *
 * @author 林强
 * @date 2018-04-12 11:15
 */
public class SysAuthorityConstants {
    /**
     * 可用
     */
    public static final String STATUS_USE = "1";
    /**
     * 逻辑删除
     */
    public static final String STATUS_DELETE = "0";
    /**
     * 启用
     */
    public static final String ABLE_USE = "1";
    /**
     * 停用
     */
    public static final String ABLE_UNUSE = "0";

    /**
     * 权限类型-默认
     */
    public static final String SYS_AUTHORITY_TYPE_DEFAULT = "0";
    /**
     * 权限类型-系统
     */
    public static final String SYS_AUTHORITY_TYPE_SYSTEM = "1";
    /**
     * 权限类型-菜单
     */
    public static final String SYS_AUTHORITY_TYPE_MENU = "2";
    /**
     * 权限类型-按钮
     */
    public static final String SYS_AUTHORITY_TYPE_BUTTON = "3";
    public static final String SAVE_SUCCESS = "新增权限成功";
    public static final String SAVE_FAIL = "新增权限失败";

    public static final String DELETE_SUCCESS = "删除权限成功";
    public static final String DELETE_FAIL = "删除权限失败";
    public static final String DELETE_FAIL_CAN_NOT_DELETE = "删除权限失败，该权限为系统权限或有关联关系";
    public static final String DELETE_FAIL_CONTAINS_CAN_NOT_DELETE = "删除失败，包含不可删除的权限";
    public static final String DELETE_FAIL_HAS_RELATION = "删除权限失败，请先删除子权限";
    public static final String DELETE_FAIL_HAS_RELATION_WITH_ROLE = "删除权限失败，请先解除角色关联";

    public static final String UPDATE_SUCCESS = "修改权限成功";
    public static final String UPDATE_FAIL = "修改权限失败";
    public static final String UPDATE_FAIL_CANNOT_UPDATE_SIGN = "不能修改该系统标志";
    public static final String NOT_EXITS = "权限不存在或已被删除";
    public static final String AUTHORITY_EXITS = "权限已存在";
    public static final String AUTHORITY_SIGN_EXITS = "系统标志已存在";

    public static final String VALIDATE_NO_SIGN = "系统标志不能为空";
    public static final String VALIDATE_NO_SYS_AUTHORITY = "未填写权限信息";
    public static final String VALIDATE_NO_SYS_AUTHORITY_NAME = "权限名称不能为空";
    public static final String VALIDATE_NO_SYS_TYPE = "类型不能为空";
    public static final String VALIDATE_NO_SYS_URL = "URL不能为空";
    public static final String VALIDATE_AUTHORITY_NAME_ERROR = "权限名称过长";
    public static final String VALIDATE_AUTHORITY_DESC_ERROR = "权限描述过长";
    public static final String VALIDATE_SIGN_ERROR = "标志错误，请输入英文1-30位";
    public static final String VALIDATE_SORT_NUM_ERROR = "排序号错误，请输入正整数1-4位";
    public static final String VALIDATE_URL_ERROR = "链接地址过长";
    public static final String VALIDATE_CLASSES_ERROR = "样式错误，请输入数字字母下划线1-255位";
    public static final String VALIDATE_ICON_ERROR = "icon错误，请输入英文数字或空格及特殊字符(仅包括-_.)1-50位";
}